<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta name="mobile-web-app-capable" content="yes">
<title>玩转活动周</title>
<link rel="stylesheet" href="css/amazeui.css">
<link rel="stylesheet" href="css/swiper.css">
<link rel="stylesheet" href="css/list.css">


</head>

<body>

<div class="top">
  <div class="topbox">
    <div class="logo"><a href="index.html"><img src="images/logo.png" alt=""/></a></div>
    <div class="nav"><a href="wzhdz.html" class="on"><span>玩转活动周</span></a> <a href="hdgl.html"><span>活动攻略</span></a> <a href="zrzx.html"><span>最热资讯</span></a> <a href="tmsys.html"><span>探秘实验室</span></a> <a href="ltkj.html"><!--span>聆听科技</span></a> <a href="jcsj.html"><span>竞猜实践</span--></a></div>
  </div>
</div>
<div class="topmar"></div>
<div class="crumbs">您所在的位置：<a href="wzhdz.html">玩转活动周</a> ><span id="name1"></span> </div>
<div class="warp">
  <div class="l800">
    <div class="lad"><img id="imgDiv" src="" alt="" height="444"/></div>
   <div class="wzddy"> 
    <div class="title1"> <span id="name"></span>  
    </div>
    <div class="cle"></div>
    <div class="mapbox">
      <div class="mapbox_l" style="width:600px">
        <p id="address"></p>
		<p  id="time"></p>
        <p  id="contact"></p>
        <p  id="join"></p>
        
      </div>
	  <div class="topmar4"></div>
      <div class="fxbox">
      <span><a id="goodButton" class="digg" href="javascript:;"><img src="images/15d.png" alt=""/><i>+1</i></a><i id="goodNum"></i></span>
      <span > <img src="images/15.png" alt=""/><i id="clickNum"></i></span>

       <span class="bdsharebuttonbox" data-tag="share_1"> <a class="bds_more" data-cmd="more">.</a> </span></div>
      <script>
	window._bd_share_config = {
		common : {
			bdText : '自定义分享内容'	
		},
		share : [{
			"bdSize" : 16
		}],
		selectShare : [{
			"bdselectMiniList" : ['qzone','tqq','kaixin001','bdxc','tqf']
		}]
	}
	with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>
      
      <!--div class="mapbox_r">
        <div id="allmap"></div>
      </div-->
    </div>
    <div class="cle"></div>
    <div class="conbox" id="description"></div> </div>
  </div>
  <div class="r350a">
    <div class="r350abox">
      <h4>相关推荐</h4>
      <ul id="relatedRoot">
        
          
      </ul>
    </div>
  </div>
</div>

 <div class="topmar1"></div>
<div class="foot">
  <div class="swap">
    <div class="wrap">
      <div class="tabs"> <a href="#" hidefocus="true" class="active">联席会议成员单位</a> <a href="#" hidefocus="true">区县科委<i></i></a> <a href="#" hidefocus="true">区县科普网站<i></i></a> <a href="#" hidefocus="true">其他科技网站<i></i></a> </div>
      <div class="swiper-container2">
        <div class="swiper-wrapper">
          <div class="swiper-slide2 ">
            <div class="content-slide"> <a href="http://www.shjcdj.cn/djw/" target="_blank">中共上海市委组织部</a><a href="http://xcb.sh.gov.cn/" target="_blank">中共上海市委宣传部</a><a href="http://www.wmsh.gov.cn/" target="_blank">上海市精神文明建设委员会办公室</a><a href="http://www.shdrc.gov.cn/" target="_blank">上海市发展和改革委员会</a><a href="http://www.sheitc.gov.cn/" target="_blank">上海市经济和信息化委员会</a><a href="http://www.shmec.gov.cn/" target="_blank">上海市教育委员会</a><a href="http://www.stcsm.gov.cn/" target="_blank">上海市科学技术委员会</a><a href="http://www.sast.gov.cn/" target="_blank">上海市科学技术协会</a><a href="http://www.shucm.sh.cn/gb/jsjt2009/index.html" target="_blank">上海市城乡建设和管理委员会</a><a href="http://www.shgzw.gov.cn/" target="_blank">上海市国有资产监督管理委员会</a><a href="http://www.wsjsw.gov.cn/wsj/" target="_blank">上海市卫生和计划生育委员会</a><a href="http://e-nw.shac.gov.cn/" target="_blank">上海市农业委员会</a><a href="http://www.czj.sh.gov.cn/" target="_blank">上海市财政局</a><a href="http://www.12333sh.gov.cn/" target="_blank">上海市人力资源和社会保障局</a><a href="http://lyw.sh.gov.cn/" target="_blank">上海市旅游局</a><a href="http://www.sepb.gov.cn/fa/cms/shhj/index.htm" target="_blank">上海市环境保护局</a><a href="http://cbj.sh.gov.cn/index.jsp" target="_blank">上海市新闻出版局</a><a href="http://wgj.sh.gov.cn/" target="_blank">上海市文化广播影视管理局</a><a href="http://www.shzgh.org/" target="_blank">上海市总工会</a><a href="http://www.shyouth.net/html/defaultsite/portal/index/index.htm" target="_blank">共青团上海市委</a><a href="http://www.shwomen.org/" target="_blank">上海市妇女联合会</a><a href="http://www.sssa.org.cn/" target="_blank">上海市社会科学界联合会</a><a href="http://www.cst.sh.cn/" target="_blank">中国科学院上海分院</a><a href="http://www.sast.org.cn/" target="_blank">上海科学院</a><a href="http://www.shwenyi.com.cn/" target="_blank">上海市文联</a><a href="http://www.sstm.org.cn/kjg_Web/" target="_blank">上海科技馆</a><a href="http://www.shfda.gov.cn/gb/node2/node3/index.html" target="_blank">上海市食品药品监督管理局</a><a href="http://www.csj.sh.gov.cn/pub/" target="_blank">上海市税务局</a><a href="http://www.sstm.org.cn/kjg_Web/html/kpfundsite/portal/index/index.htm" target="_blank">上海科普教育发展基金会</a> </div>
          </div>
          <div class="swiper-slide2 hide">
            <div class="content-slide"> <a href="http://kw.huangpuqu.sh.cn/hpkw/" target="_blank">黄浦区科委</a><a href="http://www.jingan.gov.cn/" target="_blank">静安区科委</a><a href="http://kw.changning.sh.cn/" target="_blank">长宁区科委</a><a href="http://kj.xh.sh.cn/xhkw/" target="_blank">徐汇区科委</a><a href="http://ptkj.shpt.gov.cn/" target="_blank">普陀区科委</a><a href="http://www.shk.gov.cn/" target="_blank">虹口区科委</a><a href="http://kw.shzb.gov.cn/zbkw/" target="_blank">闸北区科委</a><a href="http://ypkw.shyp.gov.cn/" target="_blank">杨浦区科委</a><a href="http://www.techpudong.gov.cn/" target="_blank">浦东新区科委</a><a href="http://www.shmh.gov.cn" target="_blank">闵行区科委</a><a href="http://bskw.baoshan.sh.cn/bskw/" target="_blank">宝山区科委</a><a href="http://sjkw.songjiang.gov.cn/" target="_blank">松江区科委</a><a href="http://scien.shqp.gov.cn/gb/special/node_4788.htm" target="_blank">青浦区科委</a><a href="http://www.keji.jiading.gov.cn/index.aspx" target="_blank">嘉定区科委</a><a href="http://www.jskw.gov.cn/html/" target="_blank">金山区科委</a><a href="http://www.fxkj.gov.cn/main/index.asp" target="_blank">奉贤区科委</a><a href="http://cmkj.shcm.gov.cn/portal/index/index.htm" target="_blank">崇明县科委</a> </div>
          </div>
          <div class="swiper-slide2 hide">
            <div class="content-slide"> <a href="http://scien.shqp.gov.cn/gb/special/node_19926.htm" target="_blank">青浦科普</a><a href="http://www.pdkp.org/" target="_blank">浦东科普网 </a><a href="http://ceshi5.71tong.net/html/" target="_blank">金山科普 </a><a href="http://jdkp.chinese-jn.com/" target="_blank">嘉定科普服务平台</a><a href="http://mhkp.123js.cn/" target="_blank">闵行科普网</a><a href="http://kj.xh.sh.cn/xhkw/xhkp2/index.aspx" target="_blank">徐汇科普</a><a href="http://bkfj.net/" target="_blank">宝科普风景线</a> </div>
          </div>
          <div class="swiper-slide2 hide">
            <div class="content-slide"> <a href="http://www.kepu.gov.cn/" target="_blank">中国科普网</a><a href="http://www.asseb.cn/" target="_blank">上海市科普教育基地联合会 </a><a href="http://www.xinmin.cn/kepu/" target="_blank">上海科普大讲坛 </a><a href="http://www.cae-shc.gov.cn/" target="_blank">上海院士中心 </a><a href="http://www.hxlib.sh.cn/" target="_blank">沪杏科技图书馆</a><a href="http://www.kpjy.org.cn/" target="_blank">上海科普教育促进中心</a><a href="http://www.kepu001.com/" target="_blank">上海科普事业中心</a><a href="http://www.stcec.com/index.asp" target="_blank">上海科技会展有限公司</a><a href="http://www.sgst.cn/" target="_blank">上海市研发公共服务平台管理中心</a> </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="js/jquery.min.js"></script> 
<script src="js/swiper.js"></script> 
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=f5Ud0uDeAGojDDQ50uIowQw3"></script> 
<script src="js/config.js"></script> 
<script src="js/data.js"></script> 
<script src="js/util.js"></script> 
<script src="js/functions.js"></script> 
<script type="text/javascript">
	 var data = null;
	 var id = null;
	$(document).ready(function(e) {
	  data = initData();
	if(data == null){
		alert("未找到相关数据，传入ID有误！");
		return;
	}
	addClickNum(id);
	getGoodNum(id);
	
	
	var related = findRelated(data);
	var relatedContent = "";
	
	for(var i=0;i<related.length;i++){
		var startTimes = related[i][startTimeIndex].split(" ");
		var endTimes = related[i][endTimeIndex].split(" ");
		relatedContent += '<li> <a href="wzhdz_info.html?id='+related[i][numberIndex]+
		'"><img style="width:300px;height:150px;" src="'+related[i][imgIndex]+'" alt=""/> <p style="margin:3px;padding:0;font-size:14px;">'+
		related[i][nameIndex]+
		//'</p><p style="margin:3px;padding:0;font-size:12px;">地址：'+related[i][addressIndex]+ '<br>  时间：'+
		//startTimes[0]+"至"+endTimes[0]+"  "+startTimes[1]+" -- "+endTimes[1]	+
		' </p> </a> </li>';
		
	}
	$("#relatedRoot").html(relatedContent);
	
	$("#name").html(data[nameIndex]);
	$("#name1").html(data[nameIndex]);
	$("#address").html("地址: "+data[addressIndex]);
	var startTimes = data[startTimeIndex].split(" ");
	var endTimes = data[endTimeIndex].split(" ");
	$("#time").html("时间："+startTimes[0]+"至"+endTimes[0]+"  "+startTimes[1]+" -- "+endTimes[1]);
	
	
	$("#contact").html("联系方式："+data[contacterIndex]+"  "+data[phoneIndex]);
	
	var  info= data[teamIndex]+" ("+data[registerIndex]+","
	switch(data[ticketIndex]){
		case 1:
			info+="无需购票"
			break;
		case 2:
			info +="需要购票，活动周期间优惠";
			break;
		case 3:
			info +="需要购票";
			break;
	}
	info += ")";
	$("#join").html("参与方式："+info);
	$("#imgDiv").attr("src",data[imgIndex]);
	
	$("#description").html(data[descIndex]);
	
   /*
    // 百度地图API功能
	var map = new BMap.Map("allmap");          
	map.centerAndZoom(new BMap.Point(121.544, 31.198), 11);
	
	var local = new BMap.LocalSearch(map, {
		renderOptions:{map: map}
	});
	
	local.search(data[addressIndex]);
	*/
 	$(".bds_more").css( {
	  "background-image":"url(images/17.png)",
	  "height":"24px",
	  "float":"none"
	  }
  
  
 	);
 	
 
    
	
	
 	$("#goodButton").one("click",function(){
		var key = 'good'+id;		
		var value = getCookie(key);
	     if(value!=null&&value!=""){
		 	alert("不能重复点赞！");
		 	return;
		 }
		 
		 setCookie(key,'1');
		 addGoodNum(id);
		 $(".digg i").fadeIn(100);
		 $(".digg i").animate({bottom:"26px"});
		 $(".digg i").delay("slow").fadeOut(300);
		 $(".digg img").attr("src","images/15a.png");
		});
		
		
    });
	
	 
	
	function addGoodNum(id){
		if(id==null||id==""||id==undefined)
			return;
		var obj=$.ajax({url:clickRoot+"/good?itemId="+id,async:false});
		var value = "0";
		if(obj.responseText!=null && obj.responseText != "" && obj.responseText!=undefined && !isNaN(obj.responseText)){
			value=obj.responseText;
		}
		 $("#goodNum").html(value);
	}
	
	function addClickNum(id){
		if(id==null||id==""||id==undefined)
			return;
		var obj=$.ajax({url:clickRoot+"/click?itemId="+id,async:false});
		var value = "0";
		 if(obj.responseText!=null && obj.responseText != "" && obj.responseText!=undefined && !isNaN(obj.responseText)){
			value=obj.responseText;
		}
		 $("#clickNum").html(value);
	}
	
	function getClickNum(id){
		if(id==null||id==""||id==undefined)
			return;
		var obj=$.ajax({url:clickRoot+"/getClick?itemId="+id,async:false});
		var value = "0";
		 if(obj.responseText!=null && obj.responseText != "" && obj.responseText!=undefined && !isNaN(obj.responseText)){
			value=obj.responseText;
		}
		 $("#clickNum").html(value);
	}
	
	function getGoodNum(id){
		if(id==null||id==""||id==undefined)
			return;
		var obj=$.ajax({url:clickRoot+"/getGood?itemId="+id,async:false});
		var value = "0";
		if(obj.responseText!=null && obj.responseText != "" && obj.responseText!=undefined && !isNaN(obj.responseText)){
			value=obj.responseText;
		}
		 $("#goodNum").html(value);
		
	}
    </script>
</body>
</html>
